<template>
	<!-- 个人中心页面 -->
	<view class="personal">
		<view class="site-mode">
			<view class="siteAddOrModify-info">
				<view class="title">姓名</view>
				<input class="siteRight" type="text" placeholder="请输入" />
			</view>
			<view class="siteAddOrModify-info">
				<view class="title">手机号码</view>
				<input class="siteRight" type="text" 
					placeholder="请输入" />
			</view>
			<view class="siteAddOrModify-info">
				<view class="title">验证码</view>
				<view class="getset">
					<input class="siteRight" type="text"
						placeholder="请输入" />
					<view class="code" @tap="getCode">获取验证码</view>
				</view>
			</view>
			<view class="siteAddOrModify-info">
				<view class="title">收货地址</view>
				<view class="getset">
					<view class="getSite-title siteRight">选择省市区/县</view>
					<view class="icon iconfont icon-xiangyoujiantou"></view>
				</view>
			</view>
			<view class="siteAddOrModify-info">
				<view class="title">详细地址</view>
				<input class="siteRight" type="text" placeholder="请输入" />
			</view>
		</view>
		<view class="save">保存</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		mounted() {},
		methods: {
			getCode(){//点击获取验证码
				
			},
		}
	}
</script>

<style lang="scss" scoped>
	.personal {
		.site-mode {
			background: #fff;

			.siteAddOrModify-info {
				display: flex;
				align-items: center;
				padding: 30rpx 40rpx;
				border-bottom: 2rpx solid #e5e5e5;

				.title {
					width: 125rpx;
					text-align: justify;
					text-justify: distribute-all-lines; // 这行必加，兼容ie浏览器
					text-align-last: justify;
					// border: 1px solid #000;
					margin-right: 25rpx;
				}

				.getset {
					width: 74%;
					display: flex;
					align-items: center;
					.getSite-title {
						overflow: hidden;
						/* 隐藏超出部分的文本 */
						text-overflow: ellipsis;
						/* 显示省略号 */
						// border: 1px solid #000;
						color: #808080;
					}
					.icon-xiangyoujiantou{
						margin-left: auto;
					}
				}

				.siteRight {
					width: 74%;
					white-space: nowrap;
					/* 让文本在一行内显示 */
					overflow: hidden;
					/* 隐藏超出部分的文本 */
					text-overflow: ellipsis;
					/* 显示省略号 */
					// border: 1px solid #000;
					font-size: 28rpx;
				}
				.code{
					font-size: 26rpx;
					width: 170rpx;
					text-align: center;
					color: #808080;
					padding: 5rpx 0;
					background: #f8f8f8;
					// border: 1px solid #f00;
				}
			}

			.sitedefault {
				//默认地址栏
				justify-content: space-between;
				display: flex;
				align-items: center;
				padding: 15rpx 40rpx;

				.title {
					width: 145rpx;
					// border: 1px solid #f00;
					text-align: justify;
					text-justify: distribute-all-lines; // 这行必加，兼容ie浏览器
					text-align-last: justify;
					margin-right: 25rpx;
				}

				switch {
					// --bg-on: #2196F3; /* 设置打开时的背景颜色为蓝色 */
					transform: scale(0.8);
				}
			}
		}
		.save{
			width: 500rpx;
			background: #00b388;
			border-radius: 10rpx;
			padding: 20rpx 0;
			text-align: center;
			margin: 0 auto;
			color: #fff;
			margin-top: 200rpx;
		}
	}
</style>